package com.teamall.web.sys.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class AidStaffArg {
    private String pk_name = "STAFF_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<AidStaffCriteria> oredCriteria;

    public AidStaffArg() {
        oredCriteria = new ArrayList<AidStaffCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<AidStaffCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(AidStaffCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public AidStaffCriteria or() {
    	AidStaffCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public AidStaffCriteria createCriteria() {
    	AidStaffCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected AidStaffCriteria createCriteriaInternal() {
    	AidStaffCriteria criteria = new AidStaffCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<AidStaffCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<AidStaffCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<AidStaffCriterion> getAllCriteria() {
            return criteria;
        }

        public List<AidStaffCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new AidStaffCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new AidStaffCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new AidStaffCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new AidStaffCriterion(condition, value1, value2));
        }

        public AidStaffCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (AidStaffCriteria) this;
        }
        public AidStaffCriteria andStaffIdIsNull() {
            addCriterion("STAFF_ID is null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdIsNotNull() {
            addCriterion("STAFF_ID is not null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdEqualTo(Integer value) {
            addCriterion("STAFF_ID =", value, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("STAFF_ID <>", value, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdGreaterThan(Integer value) {
            addCriterion("STAFF_ID >", value, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID >=", value, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdLessThan(Integer value) {
            addCriterion("STAFF_ID <", value, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID <=", value, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdNotLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdLeftLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdNotLeftLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdRightLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdNotRightLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdIn(List<Integer> values) {
            addCriterion("STAFF_ID  in ", values, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("STAFF_ID not in ", values, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID between ", value1, value2, "STAFF_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID not between ", value1, value2, "STAFF_ID");
            return (AidStaffCriteria) this;
        }
        public AidStaffCriteria andStaffNameIsNull() {
            addCriterion("STAFF_NAME is null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameIsNotNull() {
            addCriterion("STAFF_NAME is not null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameEqualTo(String value) {
            addCriterion("STAFF_NAME =", value, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameNotEqualTo(String value) {
            addCriterion("STAFF_NAME <>", value, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameGreaterThan(String value) {
            addCriterion("STAFF_NAME >", value, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("STAFF_NAME >=", value, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameLessThan(String value) {
            addCriterion("STAFF_NAME <", value, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameLessThanOrEqualTo(String value) {
            addCriterion("STAFF_NAME <=", value, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameLike(String value) {
            addCriterion("STAFF_NAME like ", value, "STAFF_NAME", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameNotLike(String value) {
            addCriterion("STAFF_NAME  not like ", value, "STAFF_NAME", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameLeftLike(String value) {
            addCriterion("STAFF_NAME like ", value, "STAFF_NAME", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameNotLeftLike(String value) {
            addCriterion("STAFF_NAME  not like ", value, "STAFF_NAME", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameRightLike(String value) {
            addCriterion("STAFF_NAME like ", value, "STAFF_NAME", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameNotRightLike(String value) {
            addCriterion("STAFF_NAME  not like ", value, "STAFF_NAME", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameIn(List<String> values) {
            addCriterion("STAFF_NAME  in ", values, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameNotIn(List<String> values) {
            addCriterion("STAFF_NAME not in ", values, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameBetween(String value1, String value2) {
            addCriterion("STAFF_NAME between ", value1, value2, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andStaffNameNotBetween(String value1, String value2) {
            addCriterion("STAFF_NAME not between ", value1, value2, "STAFF_NAME");
            return (AidStaffCriteria) this;
        }
        public AidStaffCriteria andTelIsNull() {
            addCriterion("TEL is null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelIsNotNull() {
            addCriterion("TEL is not null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelEqualTo(String value) {
            addCriterion("TEL =", value, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelNotEqualTo(String value) {
            addCriterion("TEL <>", value, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelGreaterThan(String value) {
            addCriterion("TEL >", value, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelGreaterThanOrEqualTo(String value) {
            addCriterion("TEL >=", value, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelLessThan(String value) {
            addCriterion("TEL <", value, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelLessThanOrEqualTo(String value) {
            addCriterion("TEL <=", value, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelLike(String value) {
            addCriterion("TEL like ", value, "TEL", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelNotLike(String value) {
            addCriterion("TEL  not like ", value, "TEL", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelLeftLike(String value) {
            addCriterion("TEL like ", value, "TEL", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelNotLeftLike(String value) {
            addCriterion("TEL  not like ", value, "TEL", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelRightLike(String value) {
            addCriterion("TEL like ", value, "TEL", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelNotRightLike(String value) {
            addCriterion("TEL  not like ", value, "TEL", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelIn(List<String> values) {
            addCriterion("TEL  in ", values, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelNotIn(List<String> values) {
            addCriterion("TEL not in ", values, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelBetween(String value1, String value2) {
            addCriterion("TEL between ", value1, value2, "TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andTelNotBetween(String value1, String value2) {
            addCriterion("TEL not between ", value1, value2, "TEL");
            return (AidStaffCriteria) this;
        }
        public AidStaffCriteria andJobTitleIsNull() {
            addCriterion("JOB_TITLE is null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleIsNotNull() {
            addCriterion("JOB_TITLE is not null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleEqualTo(String value) {
            addCriterion("JOB_TITLE =", value, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleNotEqualTo(String value) {
            addCriterion("JOB_TITLE <>", value, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleGreaterThan(String value) {
            addCriterion("JOB_TITLE >", value, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleGreaterThanOrEqualTo(String value) {
            addCriterion("JOB_TITLE >=", value, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleLessThan(String value) {
            addCriterion("JOB_TITLE <", value, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleLessThanOrEqualTo(String value) {
            addCriterion("JOB_TITLE <=", value, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleLike(String value) {
            addCriterion("JOB_TITLE like ", value, "JOB_TITLE", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleNotLike(String value) {
            addCriterion("JOB_TITLE  not like ", value, "JOB_TITLE", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleLeftLike(String value) {
            addCriterion("JOB_TITLE like ", value, "JOB_TITLE", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleNotLeftLike(String value) {
            addCriterion("JOB_TITLE  not like ", value, "JOB_TITLE", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleRightLike(String value) {
            addCriterion("JOB_TITLE like ", value, "JOB_TITLE", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleNotRightLike(String value) {
            addCriterion("JOB_TITLE  not like ", value, "JOB_TITLE", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleIn(List<String> values) {
            addCriterion("JOB_TITLE  in ", values, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleNotIn(List<String> values) {
            addCriterion("JOB_TITLE not in ", values, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleBetween(String value1, String value2) {
            addCriterion("JOB_TITLE between ", value1, value2, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andJobTitleNotBetween(String value1, String value2) {
            addCriterion("JOB_TITLE not between ", value1, value2, "JOB_TITLE");
            return (AidStaffCriteria) this;
        }
        public AidStaffCriteria andOfficeTelIsNull() {
            addCriterion("OFFICE_TEL is null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelIsNotNull() {
            addCriterion("OFFICE_TEL is not null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelEqualTo(String value) {
            addCriterion("OFFICE_TEL =", value, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelNotEqualTo(String value) {
            addCriterion("OFFICE_TEL <>", value, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelGreaterThan(String value) {
            addCriterion("OFFICE_TEL >", value, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelGreaterThanOrEqualTo(String value) {
            addCriterion("OFFICE_TEL >=", value, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelLessThan(String value) {
            addCriterion("OFFICE_TEL <", value, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelLessThanOrEqualTo(String value) {
            addCriterion("OFFICE_TEL <=", value, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelLike(String value) {
            addCriterion("OFFICE_TEL like ", value, "OFFICE_TEL", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelNotLike(String value) {
            addCriterion("OFFICE_TEL  not like ", value, "OFFICE_TEL", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelLeftLike(String value) {
            addCriterion("OFFICE_TEL like ", value, "OFFICE_TEL", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelNotLeftLike(String value) {
            addCriterion("OFFICE_TEL  not like ", value, "OFFICE_TEL", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelRightLike(String value) {
            addCriterion("OFFICE_TEL like ", value, "OFFICE_TEL", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelNotRightLike(String value) {
            addCriterion("OFFICE_TEL  not like ", value, "OFFICE_TEL", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelIn(List<String> values) {
            addCriterion("OFFICE_TEL  in ", values, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelNotIn(List<String> values) {
            addCriterion("OFFICE_TEL not in ", values, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelBetween(String value1, String value2) {
            addCriterion("OFFICE_TEL between ", value1, value2, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOfficeTelNotBetween(String value1, String value2) {
            addCriterion("OFFICE_TEL not between ", value1, value2, "OFFICE_TEL");
            return (AidStaffCriteria) this;
        }
        public AidStaffCriteria andDepartmentIsNull() {
            addCriterion("DEPARTMENT is null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentIsNotNull() {
            addCriterion("DEPARTMENT is not null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentEqualTo(String value) {
            addCriterion("DEPARTMENT =", value, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentNotEqualTo(String value) {
            addCriterion("DEPARTMENT <>", value, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentGreaterThan(String value) {
            addCriterion("DEPARTMENT >", value, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("DEPARTMENT >=", value, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentLessThan(String value) {
            addCriterion("DEPARTMENT <", value, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentLessThanOrEqualTo(String value) {
            addCriterion("DEPARTMENT <=", value, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentLike(String value) {
            addCriterion("DEPARTMENT like ", value, "DEPARTMENT", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentNotLike(String value) {
            addCriterion("DEPARTMENT  not like ", value, "DEPARTMENT", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentLeftLike(String value) {
            addCriterion("DEPARTMENT like ", value, "DEPARTMENT", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentNotLeftLike(String value) {
            addCriterion("DEPARTMENT  not like ", value, "DEPARTMENT", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentRightLike(String value) {
            addCriterion("DEPARTMENT like ", value, "DEPARTMENT", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentNotRightLike(String value) {
            addCriterion("DEPARTMENT  not like ", value, "DEPARTMENT", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentIn(List<String> values) {
            addCriterion("DEPARTMENT  in ", values, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentNotIn(List<String> values) {
            addCriterion("DEPARTMENT not in ", values, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentBetween(String value1, String value2) {
            addCriterion("DEPARTMENT between ", value1, value2, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andDepartmentNotBetween(String value1, String value2) {
            addCriterion("DEPARTMENT not between ", value1, value2, "DEPARTMENT");
            return (AidStaffCriteria) this;
        }
        public AidStaffCriteria andHeadImgUrlIsNull() {
            addCriterion("HEAD_IMG_URL is null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlIsNotNull() {
            addCriterion("HEAD_IMG_URL is not null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlEqualTo(String value) {
            addCriterion("HEAD_IMG_URL =", value, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlNotEqualTo(String value) {
            addCriterion("HEAD_IMG_URL <>", value, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlGreaterThan(String value) {
            addCriterion("HEAD_IMG_URL >", value, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlGreaterThanOrEqualTo(String value) {
            addCriterion("HEAD_IMG_URL >=", value, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlLessThan(String value) {
            addCriterion("HEAD_IMG_URL <", value, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlLessThanOrEqualTo(String value) {
            addCriterion("HEAD_IMG_URL <=", value, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlLike(String value) {
            addCriterion("HEAD_IMG_URL like ", value, "HEAD_IMG_URL", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlNotLike(String value) {
            addCriterion("HEAD_IMG_URL  not like ", value, "HEAD_IMG_URL", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlLeftLike(String value) {
            addCriterion("HEAD_IMG_URL like ", value, "HEAD_IMG_URL", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlNotLeftLike(String value) {
            addCriterion("HEAD_IMG_URL  not like ", value, "HEAD_IMG_URL", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlRightLike(String value) {
            addCriterion("HEAD_IMG_URL like ", value, "HEAD_IMG_URL", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlNotRightLike(String value) {
            addCriterion("HEAD_IMG_URL  not like ", value, "HEAD_IMG_URL", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlIn(List<String> values) {
            addCriterion("HEAD_IMG_URL  in ", values, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlNotIn(List<String> values) {
            addCriterion("HEAD_IMG_URL not in ", values, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlBetween(String value1, String value2) {
            addCriterion("HEAD_IMG_URL between ", value1, value2, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andHeadImgUrlNotBetween(String value1, String value2) {
            addCriterion("HEAD_IMG_URL not between ", value1, value2, "HEAD_IMG_URL");
            return (AidStaffCriteria) this;
        }
        public AidStaffCriteria andOrganIdIsNull() {
            addCriterion("ORGAN_ID is null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdIsNotNull() {
            addCriterion("ORGAN_ID is not null");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdEqualTo(Integer value) {
            addCriterion("ORGAN_ID =", value, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdNotEqualTo(Integer value) {
            addCriterion("ORGAN_ID <>", value, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdGreaterThan(Integer value) {
            addCriterion("ORGAN_ID >", value, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ORGAN_ID >=", value, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdLessThan(Integer value) {
            addCriterion("ORGAN_ID <", value, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdLessThanOrEqualTo(Integer value) {
            addCriterion("ORGAN_ID <=", value, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdLike(Integer value) {
            addCriterion("ORGAN_ID like ", value, "ORGAN_ID", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdNotLike(Integer value) {
            addCriterion("ORGAN_ID  not like ", value, "ORGAN_ID", 1);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdLeftLike(Integer value) {
            addCriterion("ORGAN_ID like ", value, "ORGAN_ID", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdNotLeftLike(Integer value) {
            addCriterion("ORGAN_ID  not like ", value, "ORGAN_ID", 0);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdRightLike(Integer value) {
            addCriterion("ORGAN_ID like ", value, "ORGAN_ID", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdNotRightLike(Integer value) {
            addCriterion("ORGAN_ID  not like ", value, "ORGAN_ID", 2);
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdIn(List<Integer> values) {
            addCriterion("ORGAN_ID  in ", values, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdNotIn(List<Integer> values) {
            addCriterion("ORGAN_ID not in ", values, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdBetween(Integer value1, Integer value2) {
            addCriterion("ORGAN_ID between ", value1, value2, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

        public AidStaffCriteria andOrganIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ORGAN_ID not between ", value1, value2, "ORGAN_ID");
            return (AidStaffCriteria) this;
        }

    }

    public static class AidStaffCriteria extends GeneratedCriteria {

        protected AidStaffCriteria() {
            super();
        }
    }

    public static class AidStaffCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected AidStaffCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected AidStaffCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected AidStaffCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected AidStaffCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected AidStaffCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected AidStaffCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}